
// 引用AES源码js
import { md5 } from 'vux'
const CryptoJS = require('crypto-js')
function padding (MkSkKshuP1) { const string = '\x56\x53\x41\x64\x61\x4b\x51\x4c\x4d\x68\x4a\x70\x64\x35\x67\x68\x73\x78\x36\x6a\x65\x78\x7a\x32\x33\x4e\x4f\x57\x61\x32\x73\x7a\x61\x36\x37\x79\x6d\x6c\x76\x32\x4f\x7a\x70\x6f\x75\x32\x4c\x35\x67\x6c\x51\x63\x35\x34\x36\x79\x35\x41\x53\x50\x51\x59\x54\x35\x54\x51\x47\x48\x41\x36\x36\x44\x53\x58\x43\x37\x58\x43\x4c\x50\x6e\x6c\x70\x32\x36\x52\x73\x78\x37\x31\x53\x30\x78\x6f\x79\x32\x70\x6c\x72\x64\x31\x4d\x39\x72\x74\x51\x39\x38\x6d\x63'; let vue = ''; for (var SPRVrfwFb2 = 0; SPRVrfwFb2 < string.length; SPRVrfwFb2 = SPRVrfwFb2 + 5) { vue = vue + string[SPRVrfwFb2] }; return vue.substring(0, 16) }; function Encrypt (dswoMa$$3) {
  var nsL4 = CryptoJS.enc.Utf8.parse(padding('\x64\x6b\x73\x73\x61\x68\x6b\x65')); var JGtgMNVkX5 = CryptoJS.AES.encrypt(dswoMa$$3, nsL4, {
    mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7
  }); return JGtgMNVkX5.ciphertext.toString()
}; function Decrypt (tqEClzDz7) { var mARaCJDS8 = CryptoJS.enc.Utf8.parse(padding('\x64\x6b\x73\x73\x61\x68\x6b\x65')); var VwjZ$ooy9 = CryptoJS.AES.decrypt(tqEClzDz7, mARaCJDS8, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }); return CryptoJS.enc.Utf8.stringify(VwjZ$ooy9).toString() }; function jump () { const numList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, '\x61', '\x62', '\x63', '\x64', '\x65', '\x66', '\x67', '\x68', '\x69', '\x6a', '\x6b', '\x6c', '\x6d', '\x6e', '\x6f', '\x70', '\x71', '\x72', '\x73', '\x74', '\x75', '\x76', '\x77', '\x78', '\x79', '\x7a']; var ZwhzYFo11 = ''; for (var DGLs12 = 0; DGLs12 < 16; DGLs12++) { ZwhzYFo11 = ZwhzYFo11 + numList[window.Math.ceil(window.Math.random() * 36)] }; return ZwhzYFo11 };

function sign (res) {
  return jump() + md5(res + padding('dkssahke')) + jump()
}

export default {
  Encrypt, Decrypt, padding, jump, sign
}
